package pokerantani.v2.linematchers;

import java.util.regex.Pattern;

import pokerantani.v2.LineMatcher;
import pokerantani.v2.RE;


public class TotalPot extends LineMatcher {
	static final Pattern pTotal = Pattern.compile("Total pot \\$?(" + RE.FLOAT + ") \\| Rake \\$?(" + RE.FLOAT + ")"); 

	public float amount;
	public float rake;
	
	public boolean match(String line) {
		if(match(line, pTotal)) {
			amount = groupFloat(1);
			rake = groupFloat(2);
			return true;
		}
		return false;
	}
}
